<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader: LPI2C Peripheral</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Common bootloader for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__lpi2c__peripheral.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">LPI2C Peripheral<div class="ingroups"><a class="el" href="group__bootloader.html">Bootloader</a> &raquo; <a class="el" href="group__peripherals.html">Peripheral Definitions</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>LPI2C peripheral interface.  
<a href="#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Collaboration diagram for LPI2C Peripheral:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<center><table><tr><td><div class="center"><iframe scrolling="no" frameborder="0" src="group__lpi2c__peripheral.svg" width="322" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:structlpi2c__transfer__info__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__peripheral.html#structlpi2c__transfer__info__t">lpi2c_transfer_info_t</a></td></tr>
<tr class="memdesc:structlpi2c__transfer__info__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">Synchronization state between LPI2C ISR and read/write functions.  <a href="group__lpi2c__peripheral.html#structlpi2c__transfer__info__t">More...</a><br /></td></tr>
<tr class="separator:structlpi2c__transfer__info__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gab04a0655cd1e3bcac5e8f48c18df1a57"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom">{ <br />
&#160;&#160;<a class="el" href="group__lpi2c__peripheral.html#ggab04a0655cd1e3bcac5e8f48c18df1a57a71de0d53e5ace56056da6944d5bcd67d">kLPI2CGlitchFilterWidth_ns</a> = 50, 
<br />
&#160;&#160;<b>kLPI2CGlitchFilterMaxCycles</b> = 15, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__peripheral.html#ggab04a0655cd1e3bcac5e8f48c18df1a57ac04e9122a5fc33a59ad4cbbcd2be71cc">kLPI2CDataValidDelayCycles</a> = 1, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__peripheral.html#ggab04a0655cd1e3bcac5e8f48c18df1a57a28c1dfa2893de92374e9cb58fa0e0d44">kLPI2CClockHoldCycles</a> = 2, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__peripheral.html#ggab04a0655cd1e3bcac5e8f48c18df1a57ad3b90139abaf23886aecf0eaf261e238">kLPI2CShutdownTimeout_ms</a> = 100
<br />
 }</td></tr>
<tr class="separator:gab04a0655cd1e3bcac5e8f48c18df1a57"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga080eea94c728db877c331a3a5ba1cd98"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga080eea94c728db877c331a3a5ba1cd98"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>lpi2c_poll_for_activity</b> (const peripheral_descriptor_t *self)</td></tr>
<tr class="separator:ga080eea94c728db877c331a3a5ba1cd98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa7566b712680a180b9e5fd1769cd12a1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa7566b712680a180b9e5fd1769cd12a1"></a>
static <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><b>lpi2c_full_init</b> (const peripheral_descriptor_t *self, serial_byte_receive_func_t function)</td></tr>
<tr class="separator:gaa7566b712680a180b9e5fd1769cd12a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacb30f484de9cf22de3bb6e45f145cebb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gacb30f484de9cf22de3bb6e45f145cebb"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>lpi2c_full_shutdown</b> (const peripheral_descriptor_t *self)</td></tr>
<tr class="separator:gacb30f484de9cf22de3bb6e45f145cebb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga01da5ebf1cee590d8287a5f8f17611ac"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga01da5ebf1cee590d8287a5f8f17611ac"></a>
static <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><b>lpi2c_write</b> (const peripheral_descriptor_t *self, const uint8_t *buffer, uint32_t byteCount)</td></tr>
<tr class="separator:ga01da5ebf1cee590d8287a5f8f17611ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga43ec59625aa813ded90876c3e91f2598"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga43ec59625aa813ded90876c3e91f2598"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>lpi2c_set_glitch_filter_width</b> (uint32_t instance, uint32_t busClock_Hz, uint32_t glitchWidth_ns)</td></tr>
<tr class="separator:ga43ec59625aa813ded90876c3e91f2598"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1397033f35e201842bf0a26f18231b5d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga1397033f35e201842bf0a26f18231b5d"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>lpi2c_data_source</b> (uint8_t *source_byte)</td></tr>
<tr class="separator:ga1397033f35e201842bf0a26f18231b5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac3c7039d7103e005522105e32924773b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac3c7039d7103e005522105e32924773b"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>lpi2c_initial_data_sink</b> (uint8_t sink_byte, uint32_t instance)</td></tr>
<tr class="separator:gac3c7039d7103e005522105e32924773b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2455f9b9e90ab6b50eaf0c30c174834e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga2455f9b9e90ab6b50eaf0c30c174834e"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>lpi2c_data_sink</b> (uint8_t sink_byte, uint32_t instance)</td></tr>
<tr class="separator:ga2455f9b9e90ab6b50eaf0c30c174834e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2c29c92c7d1e8cb11e5edaa705f67164"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__peripheral.html#ga2c29c92c7d1e8cb11e5edaa705f67164">lpi2c_SlaveIRQHandler</a> (uint32_t instance)</td></tr>
<tr class="memdesc:ga2c29c92c7d1e8cb11e5edaa705f67164"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPI2C Slave Generic IRQ handler.  <a href="#ga2c29c92c7d1e8cb11e5edaa705f67164">More...</a><br /></td></tr>
<tr class="separator:ga2c29c92c7d1e8cb11e5edaa705f67164"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9dc15a57e08391c4452fb292ba8c5d73"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9dc15a57e08391c4452fb292ba8c5d73"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>LPI2C_SetSystemIRQ</b> (uint32_t instance, <a class="el" href="group__peripherals.html#ga6bc5148daeee55537f6560fb00fb7453">PeripheralSystemIRQSetting</a> set)</td></tr>
<tr class="separator:ga9dc15a57e08391c4452fb292ba8c5d73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga26bca74cdc6414558ef4c6d282a33525"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__peripheral.html#ga26bca74cdc6414558ef4c6d282a33525">LPI2C0_IRQHandler</a> (void)</td></tr>
<tr class="memdesc:ga26bca74cdc6414558ef4c6d282a33525"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implementation of LPI2C0 handler named in startup code.  <a href="#ga26bca74cdc6414558ef4c6d282a33525">More...</a><br /></td></tr>
<tr class="separator:ga26bca74cdc6414558ef4c6d282a33525"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaecc02056b72dcb3ef9779ba058c29f1b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__peripheral.html#gaecc02056b72dcb3ef9779ba058c29f1b">LPI2C1_IRQHandler</a> (void)</td></tr>
<tr class="memdesc:gaecc02056b72dcb3ef9779ba058c29f1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implementation of LPI2C1 handler named in startup code.  <a href="#gaecc02056b72dcb3ef9779ba058c29f1b">More...</a><br /></td></tr>
<tr class="separator:gaecc02056b72dcb3ef9779ba058c29f1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4aadf50bbb56ac0ed8542b55f74f86cf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__peripheral.html#ga4aadf50bbb56ac0ed8542b55f74f86cf">LPI2C2_IRQHandler</a> (void)</td></tr>
<tr class="memdesc:ga4aadf50bbb56ac0ed8542b55f74f86cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implementation of LPI2C2 handler named in startup code.  <a href="#ga4aadf50bbb56ac0ed8542b55f74f86cf">More...</a><br /></td></tr>
<tr class="separator:ga4aadf50bbb56ac0ed8542b55f74f86cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:gaa12e0a181d49878e27184f4a0d9c11dd"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="group__peripheral.html#structperipheral__control__interface__t">peripheral_control_interface_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__peripheral.html#gaa12e0a181d49878e27184f4a0d9c11dd">g_lpi2cControlInterface</a></td></tr>
<tr class="memdesc:gaa12e0a181d49878e27184f4a0d9c11dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Control interface for the LPI2C peripheral driver.  <a href="#gaa12e0a181d49878e27184f4a0d9c11dd">More...</a><br /></td></tr>
<tr class="separator:gaa12e0a181d49878e27184f4a0d9c11dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadc0af808d0db01ce3abf85b1d507a056"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gadc0af808d0db01ce3abf85b1d507a056"></a>
const <a class="el" href="group__peripheral.html#structperipheral__byte__inteface__t">peripheral_byte_inteface_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__peripheral.html#gadc0af808d0db01ce3abf85b1d507a056">g_lpi2cByteInterface</a> = {.init = NULL, .write = lpi2c_write }</td></tr>
<tr class="memdesc:gadc0af808d0db01ce3abf85b1d507a056"><td class="mdescLeft">&#160;</td><td class="mdescRight">Byte I/O interface for the LPI2C peripheral driver. <br /></td></tr>
<tr class="separator:gadc0af808d0db01ce3abf85b1d507a056"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga36539f35f11600c3c15ed8e0a41eef43"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group__lpi2c__peripheral.html#structlpi2c__transfer__info__t">lpi2c_transfer_info_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__peripheral.html#ga36539f35f11600c3c15ed8e0a41eef43">s_lpi2cInfo</a></td></tr>
<tr class="memdesc:ga36539f35f11600c3c15ed8e0a41eef43"><td class="mdescLeft">&#160;</td><td class="mdescRight">Global state for the LPI2C peripheral interface.  <a href="#ga36539f35f11600c3c15ed8e0a41eef43">More...</a><br /></td></tr>
<tr class="separator:ga36539f35f11600c3c15ed8e0a41eef43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa1b48986040ad2b648d390eb6ad23e91"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa1b48986040ad2b648d390eb6ad23e91"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>s_lpi2cActivity</b> [FSL_FEATURE_SOC_LPI2C_COUNT] = { false }</td></tr>
<tr class="separator:gaa1b48986040ad2b648d390eb6ad23e91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0995385f8bdd5c0eb82e1c9a896698b7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0995385f8bdd5c0eb82e1c9a896698b7"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>s_lpi2cIntialized</b> [FSL_FEATURE_SOC_LPI2C_COUNT] = { false }</td></tr>
<tr class="separator:ga0995385f8bdd5c0eb82e1c9a896698b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae172edf42ec09ea61a64187708742817"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae172edf42ec09ea61a64187708742817"></a>
static const uint32_t&#160;</td><td class="memItemRight" valign="bottom"><b>g_lpi2cBaseAddr</b> [] = LPI2C_BASE_ADDRS</td></tr>
<tr class="separator:gae172edf42ec09ea61a64187708742817"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf3a799683e6fa835fff866342e240262"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf3a799683e6fa835fff866342e240262"></a>
static serial_byte_receive_func_t&#160;</td><td class="memItemRight" valign="bottom"><b>s_lpi2c_app_data_sink_callback</b></td></tr>
<tr class="separator:gaf3a799683e6fa835fff866342e240262"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Usage Information</h2>
<p>LPI2C peripheral interface. </p>
<hr/><h2 class="groupheader">Data Structure Documentation</h2>
<a name="structlpi2c__transfer__info__t" id="structlpi2c__transfer__info__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct lpi2c_transfer_info_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>Synchronization state between LPI2C ISR and read/write functions. </p>
</div><table class="memberdecls">
<tr><td colspan="2"><h3>Data Fields</h3></td></tr>
<tr class="memitem:a3a4b30eae7b109b07563f393896fec3e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a4b30eae7b109b07563f393896fec3e"></a>
const uint8_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__peripheral.html#a3a4b30eae7b109b07563f393896fec3e">writeData</a></td></tr>
<tr class="memdesc:a3a4b30eae7b109b07563f393896fec3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The applications data to write. <br /></td></tr>
<tr class="separator:a3a4b30eae7b109b07563f393896fec3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65a142e258c9eb8e52e2d680356c4c53"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a65a142e258c9eb8e52e2d680356c4c53"></a>
volatile uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__peripheral.html#a65a142e258c9eb8e52e2d680356c4c53">bytesToTransfer</a></td></tr>
<tr class="memdesc:a65a142e258c9eb8e52e2d680356c4c53"><td class="mdescLeft">&#160;</td><td class="mdescRight">The total number of bytes to be transmitted. <br /></td></tr>
<tr class="separator:a65a142e258c9eb8e52e2d680356c4c53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad973e4d60775400f9aca1b2d19d2e3ee"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad973e4d60775400f9aca1b2d19d2e3ee"></a>
void(*&#160;</td><td class="memItemRight" valign="bottom"><b>data_source</b> )(uint8_t *source_byte)</td></tr>
<tr class="separator:ad973e4d60775400f9aca1b2d19d2e3ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af95157416dd54acf148383b734ce5a4e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af95157416dd54acf148383b734ce5a4e"></a>
void(*&#160;</td><td class="memItemRight" valign="bottom"><b>data_sink</b> )(uint8_t sink_byte, uint32_t instance)</td></tr>
<tr class="separator:af95157416dd54acf148383b734ce5a4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="gab04a0655cd1e3bcac5e8f48c18df1a57"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">anonymous enum</td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggab04a0655cd1e3bcac5e8f48c18df1a57a71de0d53e5ace56056da6944d5bcd67d"></a>kLPI2CGlitchFilterWidth_ns&#160;</td><td class="fielddoc">
<p>Width of glitches to filter in nanoseconds. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggab04a0655cd1e3bcac5e8f48c18df1a57ac04e9122a5fc33a59ad4cbbcd2be71cc"></a>kLPI2CDataValidDelayCycles&#160;</td><td class="fielddoc">
<p>Part of SDA data valid delay time. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggab04a0655cd1e3bcac5e8f48c18df1a57a28c1dfa2893de92374e9cb58fa0e0d44"></a>kLPI2CClockHoldCycles&#160;</td><td class="fielddoc">
<p>Part of SCL clock hold time. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggab04a0655cd1e3bcac5e8f48c18df1a57ad3b90139abaf23886aecf0eaf261e238"></a>kLPI2CShutdownTimeout_ms&#160;</td><td class="fielddoc">
<p>Timeout before shut down module. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga26bca74cdc6414558ef4c6d282a33525"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPI2C0_IRQHandler </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implementation of LPI2C0 handler named in startup code. </p>
<p>Passes instance to generic LPI2C IRQ handler. </p>

</div>
</div>
<a class="anchor" id="gaecc02056b72dcb3ef9779ba058c29f1b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPI2C1_IRQHandler </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implementation of LPI2C1 handler named in startup code. </p>
<p>Passes instance to generic LPI2C IRQ handler. </p>

</div>
</div>
<a class="anchor" id="ga4aadf50bbb56ac0ed8542b55f74f86cf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPI2C2_IRQHandler </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Implementation of LPI2C2 handler named in startup code. </p>
<p>Passes instance to generic LPI2C IRQ handler. </p>

</div>
</div>
<a class="anchor" id="ga2c29c92c7d1e8cb11e5edaa705f67164"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void lpi2c_SlaveIRQHandler </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>instance</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>LPI2C Slave Generic IRQ handler. </p>
<p>Implements the flow chart at the end of the LPI2C chapter in the Kinetis KL25 Sub-Family Reference Manual. It uses callbacks to get/put data from/to the application as well as alert the application of an error condition.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">instance</td><td>Instance number of the LPI2C module. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="gaa12e0a181d49878e27184f4a0d9c11dd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="group__peripheral.html#structperipheral__control__interface__t">peripheral_control_interface_t</a> g_lpi2cControlInterface</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= {</div><div class="line">    .pollForActivity = lpi2c_poll_for_activity, .init = lpi2c_full_init, .shutdown = lpi2c_full_shutdown, .pump = 0</div><div class="line">}</div></div><!-- fragment -->
<p>Control interface for the LPI2C peripheral driver. </p>

</div>
</div>
<a class="anchor" id="ga36539f35f11600c3c15ed8e0a41eef43"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__lpi2c__peripheral.html#structlpi2c__transfer__info__t">lpi2c_transfer_info_t</a> s_lpi2cInfo</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= {</div><div class="line">    .writeData = 0, .bytesToTransfer = 0, .data_source = lpi2c_data_source, .data_sink = lpi2c_initial_data_sink</div><div class="line">}</div></div><!-- fragment -->
<p>Global state for the LPI2C peripheral interface. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Mon Mar 7 2016 16:48:23 for Kinetis Bootloader by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
